﻿using System.AutoUpdate.Interfaces;
using System.AutoUpdate.Library;

namespace System.AutoUpdate.Core
{
    public class TransferEventArgs : EventArgs
    {
        /// <summary>
        /// Version that was downloaded
        /// </summary>
        public UpdateVersionInfo Version
        {
            get;
            set;
        }

        /// <summary>
        /// Update source used to get the fine
        /// </summary>
        public IUpdateSource Source
        {
            get;
            set;
        }

        /// <summary>
        /// Error using the transfer
        /// </summary>
        public Exception Exception
        {
            get;
            set;
        }

        /// <summary>
        /// Amount of transfered bytes
        /// </summary>
        public long TransferredBytes
        {
            get;
            set;
        }
    }
}
